package com.cskaoyan.bean.wx.home.vo;

import com.cskaoyan.bean.MarketCoupon;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 创建日期: 2022/05/08 13:21
 *
 * @author JinLu Zhou
 */
@Data
public class CouponVo {
    Short days;
    String desc;
    BigDecimal discount;
    Integer id;
    BigDecimal min;
    String name;
    String tag;

    public void set(MarketCoupon marketCoupon) {
        setDays(marketCoupon.getDays());
        setDesc(marketCoupon.getDesc());
        setDiscount(marketCoupon.getDiscount());
        setId(marketCoupon.getId());
        setMin(marketCoupon.getMin());
        setName(marketCoupon.getName());
        setTag(marketCoupon.getTag());
    }
}
